<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="table">
    <div class="tr">
        <div class="th">姓名</div>
        <div class="th">性别</div>
        <div class="th">住址</div>
    </div>
    <div class="tr">
        <div class="td">张三</div>
        <div class="td">男</div>
        <div class="td">海南</div>
    </div>
    <div class="tr">
        <div class="td">李四</div>
        <div class="td">女</div>
        <div class="td">海南省海口市琼山区海南师范</div>
    </div>
    <div class="tr">
        <div class="td">王五</div>
        <div class="td">男</div>
        <div class="td">海南</div>
    </div>
</div>
</body>
</html>
<style>
    .table {
        width: 300px;
        border-top: 1px solid red;
        border-left: 1px solid red;
    }

    .tr {
        display: flex;
        width: 100%;
    }

    .th, .td {
        width: 33%;
        white-space: normal;
        border-bottom: 1px solid red;
        border-right: 1px solid red;
    }
</style>
